package service;

import dao.userdao.UserDao;
import dao.userdao.UserDaoImpl;
import model.User;

public class LoginService {
   public int checkUser(User user) throws Exception{
	   int flag=0;
	   UserDao userdao=new UserDaoImpl();
	   flag=userdao.queryAccount(user);
	   return flag;
   }
}
